# 具体聚合类
from iterators.aggregate import Aggregate
from iterators.concreteiterator import ConcreteIterator


class ConcreteAggregate(Aggregate):
    def __init__(self, collection):
        self.collection = collection

    def create_iterator(self):
        return ConcreteIterator(self.collection)
